import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 查询当前流程任务详情
export function queryJobByJobId(params){
    return axios({
        url: assessCheckApi.queryJobByJobId,
        method:'get' ,
        params:params,
        url_2:'outside',
    })
}

// 流程监控
export function flowJkPage(params){
    return axios({
        url: assessCheckApi.flowJkPage,
        method:'get' ,
        params:params,
        url_2:'outside',
    })
}

// 内控-报销申请流程保存接口
export function saveFlow(params){
    return axios({
        url: assessCheckApi.saveFlow,
        method:'post' ,
        data:params,
        url_2:'outside'
    })
}

// 内控-报销申请流程提交接口
export function submitFlow(params){
    return axios({
        url: assessCheckApi.submitFlow,
        method:'post' ,
        data:params,
        url_2:'outside'
    })
}

// 事项申请预览
export function zzrybxdgetYlsj(params){
    return axios({
        url: assessCheckApi.zzrybxdgetYlsj,
        method:'get' ,
        params:params,
        url_2:'outside',
    })
}

// 自定义-退回环节
export function returnUpperzdyFlowJob(data){
    return axios({
        url: assessCheckApi.returnUpperzdyFlowJob,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}

export function pidgetlchj(params){
    return axios({
        url: assessCheckApi.pidgetlchj,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 下载个人签名
export function downMyQm(params){
    return axios({
        url: assessCheckApi.downMyQm,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        responseType: 'arraybuffer',
    })
}

// 下载个人签名
export function getMoreUserSignLinkList(params){
    return axios({
        url: assessCheckApi.getMoreUserSignLinkList,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        // responseType: 'arraybuffer',
    })
}

export function getSpuser(params){
    return axios({
        url: assessCheckApi.getSpuser,
        method:'get' ,
        params:params,
        url_2:'outside'
    })
}

export function jcyfybxdupdateBxd(params){
    return axios({
      url: assessCheckApi.jcyfybxdupdateBxd,
      method:'post' ,
      data:params,
      url_2:'outside'
    })
}

export function jcyfybxdqueryZjlwfList(params){
    return axios({
      url: assessCheckApi.jcyfybxdqueryZjlwfList,
      method:'get' ,
      params:params,
      url_1:'outside'
    })
}

// 新的交通费列表
export function jcyfybxdNkBxJtxcdList(params){
    return axios({
        url: assessCheckApi.jcyfybxdNkBxJtxcdList,
        method:'get' ,
        params:params,
        url_2:'outside',
    })
}
export function jcyfybxdqueryBxryxxListByBxdId(params){
    return axios({
      url: assessCheckApi.jcyfybxdqueryBxryxxListByBxdId,
      method:'get' ,
      params:params,
      url_2:'outside'
    })
}

export function getFzxfzr(params){
    return axios({
      url: assessCheckApi.getFzxfzr,
      method:'get' ,
      params:params,
      url_2:'outside'
    })
}

export function jcyfybxdqueryFybxdTssxSqPageList(params){
    return axios({
      url: assessCheckApi.jcyfybxdqueryFybxdTssxSqPageList,
      method:'get' ,
      params:params,
      url_2:'outside'
    })
}

// 流程页面表-通过jobid查询
export function queryByJodId(params){
    return axios({
        url: assessCheckApi.queryByJodId,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

export function getzzsqd(params){
    return axios({
        url: assessCheckApi.getzzsqd,
        method:'get' ,
        params:params,
        url_2:'outside'
    })
}

export function jcybxxmbg(params){
    return axios({
        url: assessCheckApi.jcybxxmbg,
        method:'get' ,
        params:params,
        url_2:'outside'
    })
}

export function getybbxbt(params){
    return axios({
        url: assessCheckApi.getybbxbt,
        method:'get' ,
        params:params,
        url_2:'outside'
    })
}
